// 创建mock数据
let item = {
    nickname: "zim",
    avatarUrl: '/res/image/image.png',
    height: 1,
    colourClass:"",
};

let mockData = {
    data: [],
    selfIndex: 1,
    self: item
}

const maxCount = 10;
for (let i = 0; i < maxCount; i++) {
    var cp = JSON.parse(JSON.stringify(item));
    if (i < 3) {
        cp.colourClass = "colour" + i;
    }
    cp.rankScore = Math.floor(Math.random() * 1000 + 1)
    cp.nickname = 'Player_' + i;
    mockData.data.push(cp);
}

module.exports = mockData;